package com.lanou.utp.client;

import com.lanou.utp.client.clientImpl.SsoClientImpl;
import com.lanou.utp.entity.LoginUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "sso-module", fallback = SsoClientImpl.class)
public interface SsoClient {

    @RequestMapping(value = "/getCurrentUser", method = RequestMethod.GET)
    LoginUser getCurrentUser(@RequestParam("token") String token);

}
